package com.zbkj.admin.request;

import com.zbkj.admin.constants.RegularConstants;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * 用户银行卡账号 接收前端参数对象
 *
 * @author llc
 * @since 2025-04-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Schema(description = "UserAddressRequest对象 新增用户银行卡账号对象")
public class UserBankAccountRequest implements Serializable {

    private static final long serialVersionUID=1L;

    @Schema(description = "用户银行卡账号id,新增时不填")
    private Integer id;

    @Schema(description = "提现类型(1:支付宝,2:银行卡(银联)")
    private Integer type;

    @Schema(description = "账户名称（如：建设银行、工商银行）")
    private String bankName;

    @Schema(description = "账号（根据类型填入对应账号）")
    @NotBlank(message = "提现账号不能为空")
    private String bankCode;

    @Schema(description = "是否默认", example = "false", required = true)
    private Boolean isDefault;

}
